all: qutegod

clean:
	rm *.o

qutegod: \
	Cengine.o \
	CMap.o \
	CSprite.o \
	CSpriteManager.o \
	CDirectRenderer.o \
	main.o
	c++ -o qutegod Cengine.o CMap.o CSpriteManager.o CSprite.o CDirectRenderer.o main.o `sdl-config --libs` -lSDL_image

Cengine.o:	../src/Cengine.cpp
	c++ -c ../src/Cengine.cpp `sdl-config --cflags`

CMap.o:	../src/CMap.cpp
	c++ -c ../src/CMap.cpp `sdl-config --cflags`

CSprite.o:	../src/CSprite.cpp
	c++ -c ../src/CSprite.cpp `sdl-config --cflags`

CSpriteManager.o:	../src/CSpriteManager.cpp
	c++ -c ../src/CSpriteManager.cpp `sdl-config --cflags`

CDirectRenderer.o:	../src/CDirectRenderer.cpp
	c++ -c ../src/CDirectRenderer.cpp `sdl-config --cflags`

main.o:	../src/main.cpp
	c++ -c ../src/main.cpp `sdl-config --cflags`

